package cn.gqr.service;

import cn.gqr.entity.Cart;
import cn.gqr.entity.CartOrder;
import cn.gqr.entity.Order;
import cn.gqr.entity.OrderDetail;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface CartService extends IService<Cart> {


    /**添加购物车**/
    boolean addShoppingCart(Cart cart);

    /**删除购物车(单个删除或者批量删除)**/
    boolean removeShoppingCartById(Integer id);

    /**购物车分页查询**/
    Map<String,Object> selectCarts(int start, int num);

    /**下订单**/
    String placingAnOrder(CartOrder cartOrder);


}
